package lambda;

import java.io.File;
import java.io.FileFilter;

public class Demo01 {
    public static void main(String[] args) {
        File dir=new File("./src/main/java/file");
        if (dir.isDirectory()) {
            File[] subs = dir.listFiles( f->f.getName().contains("F"));
            for (File a : subs) {
                System.out.println(a.getName());
            }
        }
    }
}
